const Router = require("koa-router");
const router = new Router({ prefix: "/leave-message" });
const { auth, hasAdminPermission } = require("../middleware/auth.middleware");
const { getLeaveMessage,addLeaveMessage,updateLeaveMessage,deleteLeaveMessage,likeLeaveMessage } = require("../controller/leave_message/leave_message.controller");

router.get("/get-leave-message", getLeaveMessage);
router.post("/add-leave-message", auth, addLeaveMessage);
router.put("/update-leave-message", auth, updateLeaveMessage);
router.delete("/delete-leave-message", auth, deleteLeaveMessage);
router.post("/like-leave-message", auth, likeLeaveMessage);
module.exports = router;
